package com.knowif.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.knowif.dao.UserOrderFlowMapper;
import com.knowif.pojo.UserOrderFlow;
import com.knowif.pojo.UserOrderFlowExample;

@Service
public class UserOrderFlow_service {
	
	@Autowired
	private UserOrderFlowMapper userOrderFlowMapper;
	
	public List<UserOrderFlow> selectByUserOrderIds(List<Integer> userOrderIds){
		if(userOrderIds == null || userOrderIds.isEmpty()){
			return new ArrayList<UserOrderFlow>();
		}
		UserOrderFlowExample userOrderFlowExample = new UserOrderFlowExample();
		//普通订单payType为0，快问订单为5，因为不想加字段(麻烦)
		userOrderFlowExample.createCriteria().andUserOrderIdIn(userOrderIds).andPayTypeEqualTo(0);
		return userOrderFlowMapper.selectByExample(userOrderFlowExample);
	}
	

	
}






